@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
            <input type="hidden" id="id" value="${projectTable.id}">
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="tableName" name="表名" underline="true" readonly="readonly" value="${projectTable.tableName}"/>
                </div>
                <div class="col-sm-6 b-r">
                    <#input id="tableDesc" name="表功能描述" underline="true" readonly="readonly" value="${projectTable.tableDesc}"/>
                </div>
            </div>
        </div>
        <div class="bootstrap-table">
            <div class="fixed-table-container">
                <div>
                    <table id="ProjectTablePropertyTable" data-mobile-responsive="true" data-click-to-select="true"
                           class="table table-hover table-striped">
                        <thead>
                        <tr>
                            <th style="text-align: center; vertical-align: middle; " data-field="CN_name">
                                <div class="th-inner sortable both">中文描述</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; " data-field="EN_name">
                                <div class="th-inner sortable both">英文名称</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; " data-field="length">
                                <div class="th-inner sortable both">长度</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; " data-field="isNull">
                                <div class="th-inner sortable both">是否可为空</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; " data-field="db_type">
                                <div class="th-inner sortable both">数据库类型</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; " data-field="code_type">
                                <div class="th-inner sortable both">代码类型</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; " data-field="code_type">
                                <div class="th-inner sortable both">操作</div>
                                <div class="fht-cell"></div>
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        @for(projectTableProperty in projectTablePropertyList){
                        <tr data-index="0">
                            <td style="text-align: center; vertical-align: middle; ">${projectTableProperty.CN_name}
                            </td>
                            <td style="text-align: center; vertical-align: middle; ">${projectTableProperty.EN_name}
                            </td>
                            <td style="text-align: center; vertical-align: middle; ">${projectTableProperty.length}</td>
                            <td style="text-align: center; vertical-align: middle; ">${projectTableProperty.isNull}</td>
                            <td style="text-align: center; vertical-align: middle; ">${projectTableProperty.db_type}
                            </td>
                            <td style="text-align: center; vertical-align: middle; ">${projectTableProperty.code_type}
                            </td>
                            <td style="text-align: center; vertical-align: middle; ">
                                <a href="javascript:;" onclick="openEdit('${projectTableProperty}');">编辑</a>
                            </td>
                        </tr>
                        @}
                        </tbody>
                    </table>
                </div>
                <div class="fixed-table-pagination">
                    <div class="pull-left pagination-detail">
                        <#button name="添加属性字段" icon="fa-edit" clickFun="openAdd()" space="true"/>
                        <#button name="代码生成" icon="fa-edit" clickFun="generatorCode()" space="true"/>
                    </div>
                </div>
                <div class="form-horizontal" id="propertyEditForm">
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/system/projectTable/table_property_info.js"></script>
@}
